Skip to content

更新 - #764

Closed
Uranus-Queen wants to merge 26 commits into
saicaca:mainfrom
Uranus-Queen:main
Closed

更新#764
Uranus-Queen wants to merge 26 commits into
saicaca:mainfrom
Uranus-Queen:main

Conversation

@Uranus-Queen

Copy link
Copy Markdown

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

Changes

How To Test

Screenshots (if applicable)

Additional Notes

feat(about): 更新关于页面内容,添加占位图片
docs: 更新多个博客文章的标签格式和内容

- 统一将所有文章的 tags 字段从数组格式转换为 YAML 数组格式
- 更新 "nmap学习笔记" 中的命令格式化显示
- 修复 "一次愉快的团建" 中的图片引用格式
- 重写 "张硕" 博客的标题标点符号和内容结构
- 为 "敷衍的参观" 和 "第一篇博客" 标准化标签格式
```
Copilot AI review requested due to automatic review settings June 1, 2026 12:44
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@Uranus-Queen is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Customizes an Astro-based blog from the Fuwari demo template into a personal site, with updates to branding/content and sitemap generation behavior.

Changes:

  • Update site branding/config (title, language, banner, profile links) and add a Bing Webmaster verification meta tag.
  • Adjust markdown styling (link styling and code copy button styling).
  • Add/modify sitemap generation (Astro sitemap config + post-build custom sitemap formatting script) and remove demo content posts.

Reviewed changes

Copilot reviewed 19 out of 25 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/styles/markdown.css Tweaks markdown link styling and replaces copy button styling with explicit CSS.
src/layouts/Layout.astro Adds msvalidate.01 meta tag; minor formatting changes in PhotoSwipe config.
src/content/spec/about.md Replaces demo “About” content with a new About page and external images.
src/content/posts/video.md Removes demo “video” post.
src/content/posts/markdown.md Removes demo “markdown” post.
src/content/posts/markdown-extended.md Removes demo “markdown extended” post.
src/content/posts/guide/index.md Removes demo guide content.
src/content/posts/expressive-code.md Removes demo expressive-code post.
src/content/posts/draft.md Removes demo draft post.
src/config.ts Updates site identity, language, banner, avatar, and social links.
scripts/generate-sitemap.js Adds a custom sitemap generator that writes formatted sitemap outputs into dist/.
package.json Updates Astro-related versions and runs the custom sitemap script after build.
astro.config.mjs Sets the production site URL and configures @astrojs/sitemap options.
.vscode/settings.json Changes workspace editor settings (validation, autosave, formatting).
(path not shown in diff) Adds multiple new markdown posts (paths missing in provided diff).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +13 to +38
const fixedPages = [
{
loc: '/',
lastmod: new Date().toISOString(),
changefreq: 'daily',
priority: '0.5'
},
{
loc: '/about',
lastmod: new Date().toISOString(),
changefreq: 'daily',
priority: '0.5'
},
{
loc: '/about/',
lastmod: new Date().toISOString(),
changefreq: 'daily',
priority: '0.5'
},
{
loc: '/archive/',
lastmod: new Date().toISOString(),
changefreq: 'daily',
priority: '0.5'
}
];
Comment on lines +49 to +64
files.forEach(file => {
if (file.endsWith('.md') || file.endsWith('.mdx')) {
const filePath = path.join(postsDir, file);
const stat = fs.statSync(filePath);

// 获取文件名(不含扩展名)作为slug
const slug = file.replace(/\.(md|mdx)$/, '');

posts.push({
loc: `/posts/${encodeURIComponent(slug)}/`,
lastmod: stat.mtime.toISOString(),
changefreq: 'weekly',
priority: '0.7'
});
}
});
Comment thread package.json
"start": "astro dev",
"check": "astro check",
"build": "astro build && pagefind --site dist",
"build": "astro build && pagefind --site dist && node scripts/generate-sitemap.js",
Comment thread astro.config.mjs
Comment on lines +104 to 114
sitemap({
filter: (page) => !page.includes('/404'), // 1️⃣ 先过滤垃圾页
customPages: ['https://zhangjun.xyz/about'], // 2️⃣ 非 src/pages 的静态页
changefreq: 'daily',
priority: 0.5, // 3️⃣ 权重 - 设置为单个数字
lastmod: new Date(), // 4️⃣ 统一时间戳
serialize: async (item) => {
// 返回默认的序列化对象,保持默认行为
return item;
}
}),
Comment thread src/styles/markdown.css
Comment on lines +23 to 24
@apply relative bg-none font-medium text-[var(--primary)]
underline decoration-[var(--link-underline)] decoration-1 decoration-dashed underline-offset-4;
Comment thread src/styles/markdown.css
Comment on lines +64 to +66
@apply opacity-0 shadow-lg shadow-black/50 absolute active:scale-90 h-8 w-8 top-3 right-3 text-sm rounded-lg transition-all ease-in-out z-20 cursor-pointer;
background-color: #374151; /* equivalent to btn-regular-dark */
color: white;
Comment thread .vscode/settings.json
Comment on lines +2 to +4
"css.validate": false,
"less.validate": false,
"scss.validate": false,
… improve utility functions

- Updated blog post content in Chinese with new images and improved formatting.
- Added new styles for markdown and layout components, including transitions and scrollbar styles.
- Refactored utility functions for better type safety and consistency.
- Removed deprecated Tailwind configuration and integrated new styling approach.
- Introduced a new content configuration file with Zod schema for post validation.
- Added CLAUDE.md for project guidance and setup instructions.
…ilwind 4 dependency versions

# Conflicts:
#	package.json
#	pnpm-lock.yaml
@Uranus-Queen

Copy link
Copy Markdown
Author

已在本地合并 upstream/main 并解决 package.json / pnpm-lock.yaml 冲突(保留本仓库 Astro 6 / Tailwind 4 的依赖版本),冲突已消除。此 PR 包含个人博客内容与配置,并非需要合并进上游的改动,故关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants